home *** CD-ROM | disk | FTP | other *** search
/ Programming a Multiplayer FPS in DirectX / Programming a Multiplayer FPS in DirectX (Companion CD).iso / Paint Shop Pro / PSP900enTR.exe / Data1.cab / _BBA986B6538A40C1A7F5A50A95A4306D < prev    next >
Encoding:
Text File  |  2004-08-16  |  1.7 KB  |  52 lines

  1. from JascApp import *
  2.  
  3. def ScriptProperties():
  4.     return {
  5.         'Author': '',
  6.         'Copyright': '',
  7.         'Description': '',
  8.         'Host': 'Paint Shop Pro',
  9.         'Host Version': '8.00'
  10.         }
  11.  
  12. def Do(Environment):
  13.  
  14.     # we need at least one image for this to work
  15.     if len(App.Documents) < 1:
  16.         App.Do(Environment,  'MsgBox', {
  17.                 'Buttons': App.Constants.MsgButtons.OK, 
  18.                 'Icon': App.Constants.MsgIcons.Stop, 
  19.                 'Text': 'Command could not complete because there is no active document.'
  20.                 })
  21.         return  
  22.  
  23.     App.Do( Environment, 'LayerProperties', {
  24.             'General': {
  25.                 'Opacity': None, 
  26.                 'Name': None, 
  27.                 'IsVisible': None, 
  28.                 'IsTransparencyLocked': None, 
  29.                 'LinkSet': None, 
  30.                 'UseHighlight': None, 
  31.                 'PaletteHighlightColor': None, 
  32.                 'GroupLink': None, 
  33.                 'BlendMode': App.Constants.BlendMode.Overlay
  34.                 }, 
  35.             'BlendRanges': None, 
  36.             'Path': (0,0,[],App.Constants.Boolean.false), 
  37.             'BrightnessContrast': None, 
  38.             'ChannelMixer': None, 
  39.             'ColorBalance': None, 
  40.             'CurveParams': None, 
  41.             'HSL': None, 
  42.             'Threshold': None, 
  43.             'Levels': None, 
  44.             'Posterize': None, 
  45.             'Overlay': None, 
  46.             'GeneralSettings': {
  47.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  48.                 'AutoActionMode': App.Constants.AutoActionMode.Default
  49.                 }
  50.             })
  51.  
  52.